package com.fz.us.oa.core.service.com;

import com.fz.us.admin.base.service.BaseService;
import com.fz.us.admin.company.entity.User;
import com.fz.us.oa.core.entity.com.NoticeRead;

import java.util.List;

/**
 * Created by ZhuChunXiao on 2017/7/21.
 */
public interface NoticeReadService extends BaseService<NoticeRead, String> {
    /**
     * 该用户是否已经读过此公告
     * @param user
     * @param noticeId
     * @return
     */
    public boolean hasReaded(User user, String noticeId);

    List<NoticeRead> findUsersByNoticeRead(String userId, String noticeId);
}
